package com.chenxiao.responsibilityChain.simple;

/**
 * @Author: CX
 * @Date: Created in  2023/05/28 16:07
 * @version: v1.0  财务经理
 * @Description: TODO
 **/
public class Manager implements DoApprove{
    private String name;

    public Manager(String name) {
        this.name = name;
    }
    @Override
    public boolean approve(int amount) {
        if(amount >= 5000){
            System.out.println("无权审批，请找上一级【经理："+name+"】");
            return false;
        }
        System.out.println("审批通过，【经理："+name+"】");
        return false;
    }
}
